package com.jian.java.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Jiange
 * @create 2021-05-07-14:07
 */
@Controller
public class MyController {
    @GetMapping({"/","/index"})
    public String index(){
        return "index";
    }

    @GetMapping("/login")
    public String login(){
        return "login";
    }

    @GetMapping("/vip1")
    public String vip1(){
        System.out.println("jiange");
        return "level1/index";
    }

    @GetMapping("/vip2")
    public String vip2(){
        return "level2/index";
    }

    @GetMapping("/vip3")
    public String vip3(){
        return "level3/index";
    }
}
